package com.example.spidertp.core.model.enums;

/**
 * @author xiong.bo
 * @version 1.0
 * @date 2023/8/13 11:31 上午
 */
public enum TpWarningNoticeTypeEnum {

    MAX_POOL_SIZE_WARNING("MAX_POOL_SIZE_WARNING", "最大线程数阀值报警"),
    QUEUE_CAPACITY_WARNING("QUEUE_CAPACITY_WARNING", "队列容量阀值报警"),
    TRIGGER_REJECTION_POLICY_WARNING("TRIGGER_REJECTION_POLICY_WARNING", "触发拒绝策略报警"),
    TASK_EXEC_OVERTIME_WARNING("TASK_EXEC_OVERTIME_WARNING", "任务执行超时报警"),
    ;


    private final String code;

    private final String desc;

    TpWarningNoticeTypeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

}
